/*
 * MODULE  NAME  :
 * PROGRAM NAME  : tkhandler.h
 * AUTHOR        : hotmocha(hotmocha@126.com)
 * CREATE  DATE  : 2015-10-29 10:36:53
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_TKHANDLER_H_
#define _H_TKHANDLER_H_

#include "tknetbusi.h"

#define TK_HANDLER_TYPE_R       1
#define TK_HANDLER_TYPE_W       2
#define TK_HANDLER_TYPE_RW      4

int do_after_accept_entry(struct select_env *env, struct custom_socket *s);
int do_after_connect_entry(struct custom_socket *s);
int hd_handler_entry(struct select_env *env, struct custom_socket *s, int event_type);
struct tk_connect* tk_connect_server(struct select_env *env, char *ip, int serverport);

#endif
